import React from 'react';
import ImageCode from './sd'
import './te.less'
import { history } from 'umi';
const icoSuccess = require("./v2_riuy21.png")
class App extends React.Component {
    state = {
        url: ''
    }
 
    componentDidMount() {
        this.setState({ url: icoSuccess})
    }
 
    onReload = () => {
        this.setState({ url: icoSuccess})
    }
    render() {
        return (
            <div>
                <ImageCode
                    imageUrl={this.state.url}
                    onReload={this.onReload}
                    onMatch={() => {
                        history.push('/banner')
                    }}
                />
            </div>
        )
    }
}
export default App